package com.gxa.uhome.service;

import com.gxa.uhome.exception.BusinessException;
import com.gxa.uhome.pojo.User;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * User: Sanruy Mu
 * Date: 2021/06/07 19:07
 * Description:
 * Version: V1.0
 */
public interface UserService {
    Integer register(User user) throws BusinessException;

    User selectByPhone(String phone) throws BusinessException;

    List<User> selectUser() throws BusinessException;

    Integer changeStatus(Integer id,Boolean status) throws BusinessException;

    User selectById(Integer id) throws BusinessException;

    List<User> selectAll() throws BusinessException;

    List<Integer> selectStationName(String stationName) throws BusinessException;

    List<User> selectByMany(Map<String, Object> map) throws BusinessException;

    Integer updateLastAcTime(Integer id, Timestamp lastAcTime) throws BusinessException;

    List<User> selectByPage(Integer page, Integer size) throws BusinessException;
}